﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class BasePurchaseBillBLL
    {
        private BasePurchaseBillDAL dal;
        public BasePurchaseBillBLL()
        {
            dal = new BasePurchaseBillDAL();
        }
        public List<string> FindPurchaseBillIDByPurchaseBillID(string pid)
        {
            return dal.FindPurchaseBillIDByPurchaseBillID(pid);
        }
        public List<string> FindPurchaseBillIDByClerk(string clerk)
        {
            return dal.FindPurchaseBillIDByClerk(clerk);
        }
        public List<string> FindPurchaseBillIDByExaminer(string examiner)
        {
            return dal.FindPurchaseBillIDByExaminer(examiner);
        }
        public List<string> FindPurchaseBillIDByOnPress(int onProcess)
        {
            return dal.FindPurchaseBillIDByOnPress(onProcess);
        }
        public List<string> FindPurchaseBillIDByDate(DateTime StartDate, DateTime EndDate)
        {
            return dal.FindPurchaseBillIDByDate(StartDate, EndDate);
        }
        public PurchaseBill FindPurchaseBillByPurchaseBillID(string pid, List<PurchaseDetail> listDetail)
        {
            return dal.FindPurchaseBillByPurchaseBillID(pid, listDetail);
        }
        public PurchaseBill FindDetailPurchaseBillByPurchaseBillID(string pid)
        {
            return dal.FindDetailPurchaseBillByPurchaseBillID(pid);
        }
    }
}
